import App from './App'
import $com from '@/common/utils.js'
// 引用组件
import tabBar from '@/components/tabBar/index.vue'
Vue.component('tab-bar',tabBar) //挂载
import kjLoading from '@/components/kjLoding/index.vue'
Vue.component('kj-loading',kjLoading) //挂载
import mySwiper from '@/components/my-swiper/my-swiper.vue'
Vue.component('my-swiper',mySwiper) //挂载
import myGoodsList from '@/components/my-goods-list/my-goods-list.vue'
Vue.component('my-goods-list',myGoodsList) //挂载
import myGoodsActlist from '@/components/my-goods-actlist/my-goods-actlist.vue'
Vue.component('my-goods-actlist',myGoodsActlist) //挂载
import myCougoodsList from '@/components/my-cougoods-list/my-cougoods-list.vue'
Vue.component('my-cougoods-list',myCougoodsList) //挂载
import kjDropdown from '@/components/kj-dropdown/kj-dropdown.vue'
Vue.component('kj-dropdown',kjDropdown) //挂载
import kjSidebar from '@/components/kj-sidebar/kj-sidebar.vue'
Vue.component('kj-sidebar',kjSidebar) //挂载
import myArea from '@/components/my-area/my-area.vue'
Vue.component('my-area',myArea) //挂载
import kjDetail from '@/components/kj-detail/kj-detail.vue'
Vue.component('kj-detail',kjDetail) //挂载
import myCalendar from '@/components/my-calendar/calendar.vue'
Vue.component('my-calendar',myCalendar) //挂载

Vue.prototype.$com = $com
// #ifndef VUE3
import Vue from 'vue'
Vue.config.productionTip = false
App.mpType = 'app'
const app = new Vue({
    ...App
})
app.$mount()
// #endif

// #ifdef VUE3
import { createSSRApp } from 'vue'
export function createApp() {
  const app = createSSRApp(App)
  return {
    app
  }
}
// #endif